package com.ruoyi.canteen.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.canteen.mapper.CanteenCbMapper;
import com.ruoyi.canteen.domain.CanteenCb;
import com.ruoyi.canteen.service.ICanteenCbService;

/**
 * 餐别Service业务层处理
 * 
 * @author zhangw
 * @date 2021-09-08
 */
@Service
public class CanteenCbServiceImpl implements ICanteenCbService 
{
    @Autowired
    private CanteenCbMapper canteenCbMapper;

    /**
     * 查询餐别
     * 
     * @param id 餐别主键
     * @return 餐别
     */
    @Override
    public CanteenCb selectCanteenCbById(Long id)
    {
        return canteenCbMapper.selectCanteenCbById(id);
    }

    /**
     * 查询餐别列表
     * 
     * @param canteenCb 餐别
     * @return 餐别
     */
    @Override
    public List<CanteenCb> selectCanteenCbList(CanteenCb canteenCb)
    {
        return canteenCbMapper.selectCanteenCbList(canteenCb);
    }

    /**
     * 新增餐别
     * 
     * @param canteenCb 餐别
     * @return 结果
     */
    @Override
    public int insertCanteenCb(CanteenCb canteenCb)
    {
        return canteenCbMapper.insertCanteenCb(canteenCb);
    }

    /**
     * 修改餐别
     * 
     * @param canteenCb 餐别
     * @return 结果
     */
    @Override
    public int updateCanteenCb(CanteenCb canteenCb)
    {
        return canteenCbMapper.updateCanteenCb(canteenCb);
    }

    /**
     * 批量删除餐别
     * 
     * @param ids 需要删除的餐别主键
     * @return 结果
     */
    @Override
    public int deleteCanteenCbByIds(Long[] ids)
    {
        return canteenCbMapper.deleteCanteenCbByIds(ids);
    }

    /**
     * 删除餐别信息
     * 
     * @param id 餐别主键
     * @return 结果
     */
    @Override
    public int deleteCanteenCbById(Long id)
    {
        return canteenCbMapper.deleteCanteenCbById(id);
    }
}
